﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Project_Origin
{
    public partial class PO_Failed_Form : Form
    {
        public PO_Failed_Form()
        {
            InitializeComponent();
        }

        public delegate void childclose();
        public event childclose closefather;

        private void PO_Exit_Button_Click(object sender, EventArgs e)
        {
            PO_MainMenu pO_MainMenu = new PO_MainMenu();
            pO_MainMenu.Show();
            this.Dispose();
            this.Close();
        }

        private void PO_Reatart_Button_Click(object sender, EventArgs e)
        {
            PO_Arcade_Mode pO_Arcade_Mode = new PO_Arcade_Mode();
            pO_Arcade_Mode.Show();
            this.Dispose();
            this.Close();
        }

        private void PO_Failed_Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            closefather();
            PO_Arcade_Mode pO_Arcade_Mode = new PO_Arcade_Mode();
            pO_Arcade_Mode = (PO_Arcade_Mode)this.Owner;
            this.Dispose();
            this.Close();
        }
    }
}
